import enUS from 'vxe-table/lib/locale/lang/en-US'
const modulesFiles = require.context('./en', true, /\.js$/)

const en = modulesFiles.keys().reduce((modules, modulePath) => {
  const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
  const value = modulesFiles(modulePath)
  modules[moduleName] = value.default
  return modules
}, {})

export default {
  ...enUS,
  ...en
}
